From: kaf24@firebug.cl.cam.ac.uk Date: Mon, 26 Sep 2005 15:31:33 +0000 (+0100) Subject: xenbus_transaction_end() returns negative error code. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16770^2~1^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f61d64c62e3945c1f9b18c4917e16f7d7c7556e2;p=xen.git xenbus_transaction_end() returns negative error code. Therefore need to test for -EAGAIN (not EAGAIN). Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c index aaea46f231..ba64721bd6 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c @@ -121,7 +121,7 @@ again: } err = xenbus_transaction_end(0); - if (err == EAGAIN) + if (err == -EAGAIN) goto again; if (err) { xenbus_dev_error(be->dev, err, "ending transaction", diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index 90c20b072f..598fecc3d1 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -604,7 +604,7 @@ again: err = xenbus_transaction_end(0); if (err) { - if (err == EAGAIN) + if (err == -EAGAIN) goto again; xenbus_dev_error(dev, err, "completing transaction"); goto destroy_blkring; diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index 39e96846af..b7273a5c51 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -1161,7 +1161,7 @@ again: err = xenbus_transaction_end(0); if (err) { - if (err == EAGAIN) + if (err == -EAGAIN) goto again; xenbus_dev_error(dev, err, "completing transaction"); goto destroy_ring; diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c index 3bb1247a00..c9c417cabd 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c @@ -129,7 +129,7 @@ again: } err = xenbus_transaction_end(0); - if (err == EAGAIN) + if (err == -EAGAIN) goto again; if (err) { xenbus_dev_error(be->dev, err, "end of transaction"); diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c index a9535a08f4..43ae40bdce 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c @@ -364,7 +364,7 @@ again: } err = xenbus_transaction_end(0); - if (err == EAGAIN) + if (err == -EAGAIN) goto again; if (err) { xenbus_dev_error(dev, err, "completing transaction");